package qumaimai.entity;

import java.util.Date;

public class Address {
	private int id;
	private int userId;
	private String province;//省
	private String city;//市
	private String district;//区、县
	private String address;//详细地址
	private Date createTime;
	private int isDefault;
	private String remark;
	private String receiver;//收货人
	private String email;
	private String phone;//联系方式
	private String part;
	private Date receiveTime;
	public Address() {
		super();
		// TODO Auto-generated constructor stub
	}
	

	public Address(int userId, String province, String city, String district, String address, String remark,
			String receiver, String phone) {
		super();
		this.userId = userId;
		this.province = province;
		this.city = city;
		this.district = district;
		this.address = address;
		this.remark = remark;
		this.receiver = receiver;
		this.phone = phone;
	}

	
	public Address(int id, int userId, String province, String city, String district, String address, Date createTime,
			int isDefault, String remark, String receiver, String email, String phone, String part, Date receiveTime) {
		super();
		this.id = id;
		this.userId = userId;
		this.province = province;
		this.city = city;
		this.district = district;
		this.address = address;
		this.createTime = createTime;
		this.isDefault = isDefault;
		this.remark = remark;
		this.receiver = receiver;
		this.email = email;
		this.phone = phone;
		this.part = part;
		this.receiveTime = receiveTime;
	}
	@Override
	public String toString() {
		return "Address [id=" + id + ", userId=" + userId + ", province=" + province + ", city=" + city + ", district="
				+ district + ", address=" + address + ", createTime=" + createTime + ", isDefault=" + isDefault
				+ ", remark=" + remark + ", receiver=" + receiver + ", email=" + email + ", phone=" + phone + ", part="
				+ part + ", receiveTime=" + receiveTime + "]";
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getDistrict() {
		return district;
	}
	public void setDistrict(String district) {
		this.district = district;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public int getIsDefault() {
		return isDefault;
	}
	public void setIsDefault(int isDefault) {
		this.isDefault = isDefault;
	}
	public String getRemark() {
		if(remark==""){
			remark = "õַ";
		}
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getReceiver() {
		return receiver;
	}
	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getPart() {
		return part;
	}
	public void setPart(String part) {
		this.part = part;
	}
	public Date getReceiveTime() {
		return receiveTime;
	}
	public void setReceiveTime(Date receiveTime) {
		this.receiveTime = receiveTime;
	}

}